package com.samehope.ar.mapper;

import com.samehope.ar.entity.TaskItem;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.samehope.ar.vo.TaskItemDataVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 巡检项快照 Mapper 接口
 * </p>
 *
 * @author Zhang Luo
 * @since 2019-12-23
 */
public interface TaskItemMapper extends BaseMapper<TaskItem> {

    List<TaskItemDataVO> findByTaskPoint(@Param("companyId") Long companyId, @Param("projectid")Long projectid, @Param("taskId")Long taskId, @Param("taskPointId")Long taskPointId);

    void insertAll();

    void delByTaskTime(@Param("taskTime") String taskTime);

    void delByUnFinishTask(@Param("planId") Long planId, @Param("updateBy") Long updateBy);

    void delByTaskId(@Param("taskId") Long taskId, @Param("updateBy") Long updateBy);
}
